




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：03/05/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfsmsrecord.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfsmsrecord.entity.YfSmsrecord;
import com.application.yfsmsrecord.struts.form.YfSmsrecordForm;
import com.application.yfsmsrecord.dao.YfSmsrecordDAO;
 /**
 * 
 * Description:YfSmsrecordService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 03/05/2012 
 * 
 */
public class YfSmsrecordService extends BaseService
{
	private YfSmsrecordDAO yfSmsrecordDAO;

	public YfSmsrecordDAO getYfSmsrecordDAO() {
		return this.yfSmsrecordDAO;
	}

	public void setYfSmsrecordDAO(YfSmsrecordDAO yfSmsrecordDAO) {
		this.yfSmsrecordDAO = yfSmsrecordDAO;
	}
        

    public YfSmsrecord getYfSmsrecord(YfSmsrecord yfSmsrecord) {
		return (YfSmsrecord) this.getBaseDao().queryByPk(yfSmsrecord, yfSmsrecord.getId());
	}
	
	public Integer getAllCountYfSmsrecord(YfSmsrecordForm yfSmsrecordForm){
		return this.yfSmsrecordDAO.getAllCountYfSmsrecord(yfSmsrecordForm);
	}
	public void updateStatus(int id,Long state){
		yfSmsrecordDAO.updateStatus(id, state);
	}
	public List<YfSmsrecord> searchYfSmsrecord(YfSmsrecordForm yfSmsrecordForm, PageBean pageBean) throws Exception {
		List<YfSmsrecord> yfSmsrecordList = (List) this.yfSmsrecordDAO.searchYfSmsrecord(yfSmsrecordForm, pageBean);
		return yfSmsrecordList;
	}
        
        public void deleteYfSmsrecords(YfSmsrecordForm yfSmsrecordForm){
	   this.yfSmsrecordDAO.deleteYfSmsrecords(yfSmsrecordForm);	 
	}
}
